package com.hellobike.haxing.modules.wms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hellobike.haxing.modules.wms.entity.StockTask;
import com.hellobike.haxing.modules.wms.mapper.StockTaskMapper;
import com.hellobike.haxing.modules.wms.service.IStockTaskService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.sql.Wrapper;
import java.util.List;

/**
 * @Description: t_wms_stock_task
 * @Author: haxing-boot
 * @Date:   2020-01-09
 * @Version: V1.0
 */
@Service
public class StockTaskServiceImpl extends ServiceImpl<StockTaskMapper, StockTask> implements IStockTaskService {

    @Override
    public List<StockTask> getByDocOperId(Long docOperId) {
        StockTask s = new StockTask();
        s.setDocOperId(docOperId);
        QueryWrapper<StockTask> wrapper = new QueryWrapper<>(s);
        return baseMapper.selectList(wrapper);
    }
}
